The JSON connector lets you read objects from a JSON file and store them in an Algolia index.The connector imports a single array of JSON objects as records.
Each record must have a unique identifier to be used as the object ID in Algolia.In the following example, userID could serve as the object ID.
Open the Connectors page in the Algolia dashboard.
Select the JSON connector and click Connect.
Click Get started.
Select the authentication method:
None if the file is public.
Basic Auth if you need a username and password to access the file.
Enter the FTP or HTTP URL to your JSON file.
For HTTP URLs, you can further select whether to fetch the JSON file with a GET or a POST request. This depends on your server.
In the Unique property identifier field, enter the property of your JSON objects that should serve as unique identifiers for your Algolia records (objectID).
Enter a name for the source. This helps you distinguish between different sources.